﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace LambdaToSql.EntityModel
{
    /// <summary>
    /// 查询返回值 泛型实体
    /// </summary>
    /// <typeparam name="T"></typeparam>
    [Serializable]
    [DataContract]
    public class Result<T>
    {
        /// <summary>
        /// debug信息
        /// </summary>
        [DataMember]
        public T Data { get; set; }

        /// <summary>
        /// debug信息
        /// </summary>
        [DataMember]
        public string DeBug { get; set; }

        /// <summary>
        /// 执行方法
        /// </summary>
        [DataMember]
        public string Method { get; set; }

        /// <summary>
        /// 执行结果
        /// </summary>
        [DataMember]
        public object ResultValue { get; set; }

        /// <summary>
        /// 数据库执行时间 毫秒
        /// </summary>
        [DataMember]
        public int RunTime { get; set; }
    }
}
